/**
 * 标题数据列表项
 */
export class TitleListItem {
    // 标题
    private readonly _title: string;
    // 副标题
    private readonly _subtitle: string;
    // 标题出现展示的次数
    private _appearCnt: number = 0;

    constructor(title: string, subtitle: string) {
        this._title = title;
        this._subtitle = subtitle;
    }

    // 标题出现展示的次数 ++
    addAppearCnt(): void {
        this._appearCnt++
    }


    get title(): string {
        return this._title;
    }

    get subtitle(): string {
        return this._subtitle;
    }

    get appearCnt(): number {
        return this._appearCnt;
    }
}